package com.monkar.java.action;

import java.util.*;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.beans.factory.annotation.Autowired;

import com.monkar.java.bean.RequisitoDTO;
import com.monkar.java.service.RequisitoService;
import com.opensymphony.xwork2.ActionSupport;

public class TrasladoAction extends ActionSupport implements ServletRequestAware, SessionAware{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<RequisitoDTO> listaRequisitos;
	
	@Autowired
	private RequisitoService requisitoService;
	
	
	public TrasladoAction(){
		listaRequisitos = new ArrayList<RequisitoDTO>();
	}
	
	
	
//	TRASLADO INTERNO
	
	public String requisitosTrasladoInterno(){
		
		listaRequisitos = requisitoService.listaRequisitos();
		
		return SUCCESS;
	}
	
	public String solicitudTrasladoInterno(){
		return SUCCESS;
	}
	
	public String listaSolicitudesTrasladoInterno(){
		return SUCCESS;
	}
	
	public String generaCargaHabil(){
		return SUCCESS;
	}
	
//	TRASLADO EXTERNO
	public String requisitosTrasladoExterno(){
		return SUCCESS;
	}
	
	public String solicitudTrasladoExterno(){
		return SUCCESS;
	}
	
	public String evaluacionTrasladoExterno(){
		return SUCCESS;
	}
	
	
	
	
	
	
	
	
	

	@Override
	public void setSession(Map<String, Object> arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setServletRequest(HttpServletRequest arg0) {
		// TODO Auto-generated method stub
		
	}



	
//	GETTERS AND SETTERS
	

	public List<RequisitoDTO> getListaRequisitos() {
		return listaRequisitos;
	}



	public void setListaRequisitos(List<RequisitoDTO> listaRequisitos) {
		this.listaRequisitos = listaRequisitos;
	}
	
}
